{% extends '::layout.html.twig' %}

{% block title %}User Stories{% endblock%}

{% block titreNav %}Créer User Stories{% endblock %}

{% block titreContent %}Liste des User Stories{% endblock %}

{% block titreBreadcrumbs %}
<li><a href="#">User Stories</a></li>
{% endblock %}

{% block contentnav %} 
<div class="sideWidget">
    <form method="post" {{ form_enctype(form) }}>
        <div class="formRow">{{ form_row(form.role) }}</div>
        <div class="formRow">{{ form_row(form.action) }}</div>
        <div class="formRow">{{ form_row(form.but) }}</div>
        <div class="formRow">{{ form_row(form.ordre_priorite) }}</div>
        <div class="formRow">{{ form_row(form.ref_projet) }}</div>
        <div class="formRow noBorderB">
            <input type="submit" class="buttonS bLightBlue" value="Ajouter">
        </div>
    </form>
</div>
{% endblock %}

{% block content %}

{% set cpt = 0 %}
    {% for storie in userstories %} 
    {% if cpt == 4 %}</div><div class="fluid">{% set cpt = 0 %}{% endif%}
    <div class="widget grid3">
        <div class="whead">
            <h6>{{ storie.role }}</h6>
            <div class="clear"></div>
        </div>
        <div class="body">
            <ul class="liArrow">
                <li>Action  : {{ storie.action }}</li>
                <li>But     : {{ storie.but }}</li>
                <li>Statut  : {{ storie.statut }}</li>
                <li>Ordre de priorité : {{ storie.ordrePriorite}}</li>
            </ul> 
        </div>
    </div>
    {% set cpt = cpt + 1 %}
    {% endfor %}

{% endblock %}

